<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:set var="sub_grant_code"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>

<div class="t_bar"><span class="color_red">*</span>项目资金基本情况（金额单位：万元）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="fund1">
	<tr>
	    <td colspan="2" width="20%" align="right" nowrap>国家/省/市立项类别（计划名称）：</td>
		<td colspan="8">
			<input  name="fund/plan_name" label="国家/省/市立项类别（计划名称）" type="text" 
					class="required maxlength:50"  style="text-align:left;width:200px;" 
					value="<x:out select="$xmlData/data/fund/plan_name" />" /> 
		</td>
	</tr>
	<tr>		
		<td width="20%" align="right" colspan="2" >批准单位：</td>
		<td colspan="8">
			<input name="fund/app_org" label="批准单位" type="text" 
				   class="required "  style="text-align:left;width:200px;" 
				   value="<x:out select="$xmlData/data/fund/app_org" />" /> 
		</td>
	</tr>  
    <tr>		
		<td width="20%" align="right" colspan="2" >批准文号：</td>
		<td colspan="3">
			<input name="fund/app_num" label="批准文号" type="text" 
				   class="required "  style="text-align:left;width:200px;" 
				   value="<x:out select="$xmlData/data/fund/app_num" />" /> 
		</td>
		<td width="20%" align="right" colspan="2" >任务书/合同书号码：</td>
		<td colspan="3">
			<input name="fund/mission" label="任务书/合同书号码" type="text" 
				   class="required maxlength:20"  style="text-align:left;width:200px;" 
				   value="<x:out select="$xmlData/data/fund/mission" />" /> 
		</td>
	</tr>  
	<tr>		
		<td width="20%" align="right" colspan="2" >国家/省/市计划立项项目代码：</td>
		<td colspan="3">
			<input name="fund/plan_code" label="国家/省/市计划立项项目代码" type="text" 
				   class="required "  style="text-align:left;width:200px;" 
				   value="<x:out select="$xmlData/data/fund/plan_code" />" /> 
		</td>
		<td width="20%" align="right" colspan="2" >国家/省/市拟资助总额：</td>
		<td colspan="3">
			<input name="fund/plan_amt" label="国家/省/市拟资助总额" type="text" 
				   class="required maxlength:20"  style="text-align:right;width:200px;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/fund/plan_amt" />" /> 
		</td>
	</tr>
	<tr>		
		<td width="20%" align="right" colspan="2" >到位经费：</td>
		<td colspan="3">
			<input name="fund/place_fund" label="到位经费" type="text" 
			       onfocus="InitInput.setNumber(this,7,4,2)"
				   class="required "  style="text-align:right;width:200px;" 
				   value="<x:out select="$xmlData/data/fund/place_fund" />" /> 
		</td>
		<td width="20%" align="right" colspan="2" >项目是否已验收：</td>
		<td colspan="3">
		    <c:set var="accept_value"><x:out select="$xmlData/data/fund/accept_value" /></c:set> 
            <cpt:select id="accept" key="boolean"  value="${accept_value}" className="required" label="项目是否已验收"></cpt:select>
            <input type="hidden"  name="fund/accept_value" value="${accept_value}" />
            <input type="hidden" name="fund/accept_name" value="<x:out select="$xmlData/data/fund/accept_name" />" />
		</td>
	</tr>    

	<tr>		
		<th colspan="3" align="right">申请区文化产业发展专项资金匹配金额</th>
		<td colspan="7" >
		    <input id="proposal_amt" name="proposal/amt" label="申请区文化产业发展专项资金匹配金额" type="text"
				   class="input_text required valueEqual:proposal_amt:invest_use_total"  
				   style="text-align:right;width:130px;"   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/proposal/amt" />"  /> 
		</td>
	</tr> 
    <tr>		
		<th >总投资</th>
		<td colspan="9" >
		    <input id="invest_total2" name="budget/invest_detail/total" label="总投资" type="text"
				   class="input_text required gray"  
				   style="text-align:right;width:130px;" disabled
				   value="<x:out select="$xmlData/data/budget/invest_detail/total" />"  /> 
		</td>
	</tr> 
	<tr>
	    <th rowspan='2' width="10%">&nbsp;</th>
		<th rowspan='2' width="10%">合计</th>
		<th rowspan='2' width="10%">企业自筹</th>
		<th colspan='4' width="40%">政府资金</th>
		<th rowspan='2' width="10%">创投资金</th>
		<th rowspan='2' width="10%">银行贷款</th>
		<th rowspan='2' width="10%">其他</th>
	</tr>
	<tr>
	    <th  width="10%" nowrap>国家/省/市拨款</th>
	    <th  width="10%" nowrap>深圳市</th>
	    <th  width="20%" nowrap colspan='2' >深圳市下达单位</th>
	</tr>
	<tr align="center">
	    <td>已完成投资</td>
	    <td>
	       <input id="invest_fin_total" name="budget/invest_detail/fin_total" type="text"
				   class="input_text gray" disabled
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_total" />" />
        </td>
	    <td>
	       <input id="invest_fin_self" name="budget/invest_detail/fin_self" label="已完成投资中的企业自筹" type="text"
				   class="input_text required"   
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_self" />"
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');" />
        </td>
        <td>
	       <input id="invest_fin_country" name="budget/invest_detail/fin_country" label="已完成投资中的国家/省/市拨款" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_country" />"
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input name="budget/invest_detail/fin_city" label="已完成投资中的深圳市" type="text"
				   class="input_text required"   id="invest_fin_city"
				   style="text-align:right;width:80%;"  onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_city" />" 
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
				  
        </td>
         <td colspan='2'>
	       <input id="invest_fin_issued_org" name="budget/invest_detail/fin_issued_org" label="已完成投资中的深圳市下达单位名称" type="text"
				   class="input_text required"  
				   style="width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_issued_org" />" />
        </td>
        <td>
	       <input id="invest_fin_venture" name="budget/invest_detail/fin_venture" label="已完成投资中的创投资金" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_venture" />"
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input id="invest_fin_bank_loans" name="budget/invest_detail/fin_bank_loans" label="已完成投资中的银行贷款" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_bank_loans" />"
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input id="invest_fin_other" name="budget/invest_detail/fin_other" label="已完成投资中的其他" type="text"
				   class="input_text required"  
				   style="text-align:right;width:90px;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/fin_other" />"
				   onchange="countFundAuto('invest_','fin_self,fin_country,fin_venture,fin_bank_loans,fin_other,fin_city','fin_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
	</tr>
	<tr align="center">
	    <td nowrap>计划新增投资</td>
	    <td>
	       <input id="invest_new_total" name="budget/invest_detail/new_total" type="text"
				   class="input_text gray" disabled
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_total" />" />
        </td>
	    <td>
	       <input id="invest_new_self" name="budget/invest_detail/new_self" label="计划新增投资中的企业自筹" type="text"
				   class="input_text required"   
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_self" />"
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input id="invest_new_country" name="budget/invest_detail/new_country" label="计划新增投资中的国家/省/市拨款" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_country" />"
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input  name="budget/invest_detail/new_city" label="计划新增投资中的深圳市" type="text"
				   class="input_text required"   id="invest_new_city"
				   style="text-align:right;width:80%;"
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_city" />" 
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
         <td colspan='2'>
	       <input id="invest_new_issued_org" name="budget/invest_detail/new_issued_org" label="计划新增投资中的深圳市下达单位名称" type="text"
				   class="input_text required"  
				   style="width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_issued_org" />" />
        </td>
        <td>
	       <input id="invest_new_venture" name="budget/invest_detail/new_venture" label="计划新增投资中的创投资金" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_venture" />"
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input id="invest_new_bank_loans" name="budget/invest_detail/new_bank_loans" label="计划新增投资中的银行贷款" type="text"
				   class="input_text required"  
				   style="text-align:right;width:80%;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_bank_loans" />"
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
        <td>
	       <input id="invest_new_other" name="budget/invest_detail/new_other" label="计划新增投资中的其他" type="text"
				   class="input_text required"  
				   style="text-align:right;width:90px;" 
				   onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/new_other" />"
				   onchange="countFundAuto('invest_','new_self,new_country,new_venture,new_bank_loans,new_other,new_city','new_total');countFundAuto('invest_','fin_total,new_total','total2');"  />
        </td>
	</tr>
</table>
<br>

<div class="t_bar"><span class="color_red">*</span>国家、省、市资助经费下达情况</div>
<table class="table01" width="100%" border="0" cellpadding="0"
	id="tblissueds" cellspacing="1">
    <thead>
		<tr>
			<th class="TblHead" align="center" width="7%">选择</th>
			<th class="TblHead" align="center" width="7%">序号</th>
			<th class="TblHead" align="center" width="20%">经费下达时间 </th>
			<th class="TblHead" align="center" width="20%">经费下达通知书/文号 </th>
			<th class="TblHead" align="center" width="20%">经费进账凭证号码 </th>
			<th class="TblHead" align="center" width="20%">下达经费金额（万元） </th>
		</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td style="text-align:center;">&nbsp;
							<input type="radio" class="radiobutton" name="selissueds" >
						</td>
						<td style="text-align:center;">&nbsp;
							<span name="issueds|issued[0]@seq_no" >[index]</span> 
						</td>
						<td style="text-align:center;">
							<input  id="issued_date_[0]" name="issueds|issued[0]|issued_date" label="经费下达时间" 
							value="" class="required input_text date" 
							style="width:60%" />&nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="15" name="issueds|issued[0]|notice" class="required input_text " 
							style="width:85%"
							maxlength=50 label="经费下达通知书/文号" value=""/>&nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="15" name="issueds|issued[0]|cert_num" class="required input_text " 
							style="text-align:left;width:85%"  
							maxlength=50 label="经费进账凭证号码" value=""/>&nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="15" name="issueds|issued[0]|fund" class="required input_text " 
							style="text-align:right;width:85%"  onfocus="InitInput.setNumber(this,7,4,2)"
							onchange="countTable('tblissueds','issued_total','5')"
							maxlength=50 label="下达经费金额" value=""/>&nbsp;
						</td>					
					</tr>
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/issueds/issued" var="issueds">
					<c:choose>
						<c:when test="${index<10}" >
						<c:set value="0" var="flag" scope="page"/>
						</c:when>
						<c:otherwise>
						<c:set value="" var="flag" scope="page"/>
						</c:otherwise>
					</c:choose>
					<tr>
						<td style="text-align:center;">&nbsp;
							<input type="radio" class="radiobutton" name="selissueds" >
						</td>
						<td style="text-align:center;">
							<span name="issueds/issued[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<td style="text-align:center;">
							<c:set var="issued_date" scope="page"><x:out select="$issueds/issued_date"/></c:set>
							<input id="issued_date_[${flag}${index}]" value="${issued_date}" label="经费下达时间" 
							       name="issueds/issued[${flag}${index}]/issued_date"
							       class="required date input_text"  style="width:60%" /> &nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="10" name="issueds/issued[${flag}${index}]/notice" class="input_text required" 
							style="width:85%"  
							label="经费下达通知书/文号" value="<x:out select="$issueds/notice" />" />&nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="10" name="issueds/issued[${flag}${index}]/cert_num" class="input_text required" 
							style="text-align:left;width:85%" 
							label="经费进账凭证号码" value="<x:out select="$issueds/cert_num" />" />&nbsp;
						</td>
						<td style="text-align:center;">
							<input type="text" size="10" name="issueds/issued[${flag}${index}]/fund" class="input_text required" 
							style="text-align:right;width:85%" onfocus="InitInput.setNumber(this,7,4,2)"
							onchange="countTable('tblissueds','issued_total','5')"
							label="下达经费金额" value="<x:out select="$issueds/fund" />" />&nbsp;
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblissueds");
					</script>
				</tbody>
			</table>
			<table class="t_css" cellpadding="0" cellspacing="0" width="100%" align="center">
                <tr>
		            <td colspan="1"  class="thclass" nowrap style="text-align:right;">合计：</td>
		            <td colspan="1" class="thclass" width="550px">
			           <input id="issued_total" name="issued/issued_total" label="合计" type="text" disabled
					     class="input_text gray"  style="text-align:right" size="35"
					     value="<x:out select="$xmlData/data/issued/issued_total" />" /> （由系统自动合计列表中“下达经费金额”列）
		            </td>
		          
               </tr>						
            </table>
			<br>
			<table width="98%" align="center">
				<tr>
					<td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblissueds',10,'只能填写10个国家、省、市资助经费下达情况')){addNewRow('tblissueds');showDateTag('tblissueds');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblissueds','selissueds')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblissueds','selissueds')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblissueds','国家、省、市资助经费下达情况');countTable('tblissueds','issued_total','5');">
					</td>
				</tr>
	        </table>
<br>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="fund3">
	<tr>
		<td colspan="3" class="t_bar"><span class="color_red">*</span>申请区文化产业发展专项资金匹配经费支出预算（单位：万元）</td>
	</tr>
	<tr>
	    <th  width="14%">人员费</th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_memb" name="budget/invest_detail/use_memb" label="申请区文化产业发展专项资金匹配经费支出预算中的人员费" type="text"
				   class="input_text required maxlength:20"  style="text-align:right;width:250px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_memb" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  />
	    </td>
	</tr>
	
	<tr>
	<th rowspan="6" width="14%">仪器设备费</th>
	    <th colspan="2" width="14%">其中</th>
	    
	</tr>
	<tr>
	    <th width="14%">仪器名称</th>
	    <th width="14%">金额</th>
	</tr>
	<tr>
	    <td align='left'>
	      <input id="invest_use_equipment_name1" name="budget/invest_detail/use_equipment_name1" onchange="checkDisabled2();"  label="申请区文化产业发展专项资金匹配经费支出预算中的仪器设备费中的仪器名称1" type="text"
				   class="input_text maxlength:20"  style="text-align:left;width:250px;" maxlength="50"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_name1" />" /> 
	    </td>
	    <td align='center'>
	      <input id="invest_use_equipment_money1" name="budget/invest_detail/use_equipment_money1" label="申请区文化产业发展专项资金匹配经费支出预算中的仪器设备费中的金额1" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_money1" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  /> 
	    </td>
	</tr>
	<tr>
	    <td align='left'>
	      <input id="invest_use_equipment_name2" name="budget/invest_detail/use_equipment_name2" onchange="checkDisabled2();"  label="申请区文化产业发展专项资金匹配经费支出预算中的仪器名称2" type="text"
				   class="input_text maxlength:20"  style="text-align:left;width:250px;" maxlength="50"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_name2" />"/> 
	    </td>
	    <td align='center'>
	      <input id="invest_use_equipment_money2" name="budget/invest_detail/use_equipment_money2" label="申请区文化产业发展专项资金匹配经费支出预算中的金额2" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_money2" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  /> 
	    </td>
	</tr>
	<tr>
	    <td align='left'>
	      <input id="invest_use_equipment_name3" name="budget/invest_detail/use_equipment_name3"  onchange="checkDisabled2();" label="申请区文化产业发展专项资金匹配经费支出预算中的仪器名称3" type="text"
				   class="input_text maxlength:20"  style="text-align:left;width:250px;" maxlength="50"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_name3" />" /> 
	    </td>
	    <td align='center'>
	      <input id="invest_use_equipment_money3" name="budget/invest_detail/use_equipment_money3" label="申请区文化产业发展专项资金匹配经费支出预算中的金额3" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_money3" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  /> 
	    </td>
	</tr>
	<tr>
	    <td align='left'>
	      <input id="invest_use_equipment_name4" name="budget/invest_detail/use_equipment_name4"  onchange="checkDisabled2();"  label="申请区文化产业发展专项资金匹配经费支出预算中的仪器名称4" type="text"
				   class="input_text maxlength:20"  style="text-align:left;width:250px;" maxlength="50"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_name4" />" /> 
	    </td>
	    <td align='center'>
	      <input id="invest_use_equipment_money4" name="budget/invest_detail/use_equipment_money4"  disabled label="申请区文化产业发展专项资金匹配经费支出预算中的金额4" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_equipment_money4" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  /> 
	    </td>
	</tr>
	<tr>
	    <th  width="14%">
           <input  name="budget/invest_detail/use_material_name" type="text" onchange="checkDisabled2();"  id="use_material_name"
				   class="input_text"  style="width:80%;" maxlength="150" 
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_material_name" />" />
        </th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_material" name="budget/invest_detail/use_material" label="申请区文化产业发展专项资金匹配经费支出预算中的材料费" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_material" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  />
	    </td>
	</tr>
	<tr>
	    <th  width="14%">
	       <input name="budget/invest_detail/use_market_name" type="text" onchange="checkDisabled2();"  id="use_market_name"
				  class="input_text"  style="width:80%;" maxlength="150" 
				  value="<x:out select="$xmlData/data/budget/invest_detail/use_market_name" />" />
	    </th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_market" name="budget/invest_detail/use_market" label="申请区文化产业发展专项资金匹配经费支出预算中的市场开拓相关费用" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_market" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  />
	    </td>
	</tr>
	<tr>
	    <th  width="14%">
	       <input name="budget/invest_detail/use_events_name" type="text" onchange="checkDisabled2();"  id="use_events_name"
				  class="input_text"  style="width:80%;" maxlength="150" 
				  value="<x:out select="$xmlData/data/budget/invest_detail/use_events_name" />" />
	    </th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_events" name="budget/invest_detail/use_events" label="申请区文化产业发展专项资金匹配经费支出预算中的赛事奖金" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_events" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  />
	    </td>
	</tr>
	<tr>
	    <th  width="14%">
	       <input name="budget/invest_detail/use_other_name" type="text" onchange="checkDisabled2();" id="use_other_name"
				  class="input_text"  style="width:80%;" maxlength="150" 
				  value="<x:out select="$xmlData/data/budget/invest_detail/use_other_name" />" />
	    </th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_other" name="budget/invest_detail/use_other" label="申请区文化产业发展专项资金匹配经费支出预算中的其他相关费用" type="text"
				   class="input_text maxlength:20"  style="text-align:right;width:250px;" maxlength="50" disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_other" />" 
				   onchange="countFundAuto('invest_use_','memb,equipment_money1,equipment_money2,equipment_money3,equipment_money4,material,market,events,other','total');"  />
	    </td>
	</tr>
	<tr>
	    <th  width="14%">合计</th>
		<td colspan="2" align='left' width="84%">
	      <input id="invest_use_total" name="budget/invest_detail/use_total" label="申请区文化产业发展专项资金匹配经费支出预算中的合计" type="text"
				   class="input_text gray" disabled style="text-align:right;width:250px;" maxlength="50"  disabled onfocus="InitInput.setNumber(this,7,4,2)"
				   value="<x:out select="$xmlData/data/budget/invest_detail/use_total" />" /> 
	    </td>
	</tr>
</table>
<script type="text/javascript">


$(function() {
	 checkDisabled2();	
});


function  checkDisabled(){
	
	if($("#invest_use_equipment_name1").val()!=""&&$("#invest_use_equipment_money1").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#invest_use_equipment_name1").val()+"的金额不能为空");
	}
	if($("#invest_use_equipment_name2").val()!=""&&$("#invest_use_equipment_money2").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#invest_use_equipment_name2").val()+"的金额不能为空");
	}
	if($("#invest_use_equipment_name3").val()!=""&&$("#invest_use_equipment_money3").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#invest_use_equipment_name3").val()+"的金额不能为空");
	}
	if($("#invest_use_equipment_name4").val()!=""&&$("#invest_use_equipment_money4").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#invest_use_equipment_name4").val()+"的金额不能为空");
	}
	

	
	if($("#use_material_name").val()!=""&&$("#invest_use_material").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#use_material_name").val()+"的金额不能为空");
	}

	
	if($("#use_market_name").val()!=""&&$("#invest_use_market").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#use_market_name").val()+"的金额不能为空");
	}
	
	
	if($("#use_events_name").val()!=""&&$("#invest_use_events").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#use_events_name").val()+"的金额不能为空");
	} 
	if($("#use_other_name").val()!=""&&$("#invest_use_other").val()=="") {
		irisValaddMsg("项目经费-->申请区文化产业发展专项资金匹配经费支出预算->"+$("#use_other_name").val()+"的金额不能为空");
	}
}

function  checkDisabled2(){
	
	if($("#invest_use_equipment_name1").val()!="") $("#invest_use_equipment_money1").attr("disabled",false);
	else $("#invest_use_equipment_money1").attr("disabled",true);
	if($("#invest_use_equipment_name2").val()!="") $("#invest_use_equipment_money2").attr("disabled",false);
	else  $("#invest_use_equipment_money2").attr("disabled",true);
	if($("#invest_use_equipment_name3").val()!="") $("#invest_use_equipment_money3").attr("disabled",false);
	else  $("#invest_use_equipment_money3").attr("disabled",true);
	if($("#invest_use_equipment_name4").val()!="") $("#invest_use_equipment_money4").attr("disabled",false);
	else  $("#invest_use_equipment_money4").attr("disabled",true);
	if($("#use_material_name").val()!="")  $("#invest_use_material").attr("disabled",false);
	else $("#invest_use_material").attr("disabled",true);
	if($("#use_market_name").val()!="") $("#invest_use_market").attr("disabled",false);
	else $("#invest_use_market").attr("disabled",true);
	if($("#use_events_name").val()!="") $("#invest_use_events").attr("disabled",false);
	else $("#invest_use_events").attr("disabled",true);
	if($("#use_other_name").val()!="")  $("#invest_use_other").attr("disabled",false);
	else $("#invest_use_other").attr("disabled",true);
	
	
	
}
</script>